home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************/
- /* */
- /* This function was written by Jim Niederriter for the Lattice `C' Compiler*/
- /* on the IBM Personal Computer or compatible, running DOS 2.0. */
- /* */
- /* It requires that the system be booted with a CONFIG.SYS file on the boot */
- /* disk containing the record: DEVICE=ANSI.SYS */
- /* */
- /* In addition, the ANSI.SYS file from the DOS 2.0 disk should also be on */
- /* the boot disk. */
- /* */
- /* See Chapter 13 of the DOS 2.0 Manual for further explanation. */
- /* */
- /****************************************************************************/
-
- /* scr_colr() */
- /* this function sets all screen output that follows to the shade, */
- /* color, or attribute that corresponds to the color code passed */
-
- int scrn_hi(color)
- int color;
- {
- cprintf("\x1B[%dm", color);
- }
-
- /* COLOR CODES:
-
- 0 = Normal white on black
- 1 = High intensity
- 4 = Underscore on (IBM mono display only)
- 5 = Blink on
- 7 = Reverse video on
- 8 = Cancelled on (invisible)
- 30 = Black foreground
- 31 = Red foreground
- 32 = Green foreground
- 33 = Yellow foreground
- 34 = Blue foreground
- 35 = Magenta foreground
- 36 = Cyan foreground
- 37 = White foreground
- 40 = Black background
- 41 = Red Background
- 42 = Green background
- 43 = Yellow background
- 44 = Blue background
- 45 = Magenta background
- 46 = Cyan background
- 47 = White Background
- */
-
-
-